<template>
  <el-menu mode="vertical" unique-opened :default-active="$route.path" router background-color="#545c64"
           text-color="#fff"
           active-text-color="#ffd04b">
    <sidebar-item :data='data'></sidebar-item>
  </el-menu>
</template>

<script>
  import SidebarItem from './SideBarItem'

  export default {
    components: {SidebarItem},
    props: {
      data: {
        type: Array,
        require: true
      }
    }
  }
</script>
